package com.vic.test.designpattern._2proxypattern.cglib;

public class APP {

    public static void main(String[] args) {
        //目标对象
        UserDao target = new UserDao();
        System.out.println(target);
        //代理对象
        UserDao proxy = (UserDao) new CglibProxyFactory(target).getProxyInstance();
        System.out.println(proxy);
        proxy.save();
    }
}
